package com.iepacj.chain.demo1;

/**
 * Created by iEpac on 16/5/2.
 */
public class ConcreteHandler extends Handler {

    @Override
    public void handleRequest() {

        if (getSuccessor() != null) {
            System.out.println("The request is pass to " + getSuccessor());
            getSuccessor().handleRequest();
            return;
        }

        System.out.println("The request is handle here");

    }
}
